package com.ms.mishitong.controller;


import com.ms.mishitong.dto.Result;
import com.ms.mishitong.service.IFriendListService;
import com.ms.mishitong.utils.ThroadLocal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@Slf4j
@RestController
public class FriendListController {
    @Autowired
    private IFriendListService friendListService;
    @GetMapping("/Friend/List")
    public Result getFriendList() {
            log.info("用戶ID:{}",ThroadLocal.get().getId());
            return friendListService.getFriendList(ThroadLocal.get().getId());
    }
}
